<%-- 
    Document   : login
    Created on : 13-08-2014, 22:15:28
    Author     : NGOCLINH-PC
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    // String user = (String) session.getAttribute("ssuser");
    if (session.getAttribute("ssuser") != null) {
        String user = (String) session.getAttribute("ssuser");
        if (user == "") {
            response.sendRedirect("../admin/login.jsp");
        } else {
            response.sendRedirect("../admin/index.jsp");
        }
    }
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login Page</title>
        <link rel="stylesheet" type="text/css" href="../admin/css/style_login.css"/>

    </head>
    <body>
        <form name="frmLogin" method="post" action="../LoginPR" id="frmLogin">
            <table align="center" class="tbl_lg_bd" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td colspan="2" class="bg_lg_top">
                            ::Logged the system
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="bg_lg_bt">
                            <p style="float: left; font-family: Arial; font-weight: bold; font-size: 18px; padding: 0 0 0 30px;
                               margin: 15px 0 0 0;">
                                MANAGEMENT WEBSITE</p>
                            <div style="float: right; width: 70px; padding-right: 10px;">
                                <img src="../admin/image/systeminfo.png" alt=""></div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="height: 15px;">&nbsp;

                        </td>
                    </tr>
                    <tr>
                        <td class="title_lg_us_ps">
                            Username:
                        </td>
                        <td class="txt_ct_lg">
                            <input required="text" name="txtUsername" type="text" id="txtUsername" style="width:250px;">
                        </td>
                    </tr>
                    <tr>
                        <td class="title_lg_us_ps">
                            Password:
                        </td>
                        <td class="txt_ct_lg">
                            <input required="password" name="txtPassword" type="password" id="txtPassword" style="width:250px;">
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;

                        </td>
                        <td align="right" class="bt_lg_bt">
                            <input type="submit" name="btnlog" id="btnlog" value="" class="btnlog">
                        </td>
                    </tr>
                </tbody>
            </table>

        </form>

    </body>
</html>
